# 定义任务
from .smsCode import mobileCode
from celery_tasks.main import celery_app


@celery_app.task(name='send_sms_code')
def send_sms_code(mobile, random_code):
    """
    :param mobile:  手机号
    :param random_code:  验证码
    :return:  成功 0
    """
    result = mobileCode.send_message(mobile, random_code)
    return result

